package com.yq.bdm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yq.bdm.dao.MenuPermissionDao;
import com.yq.bdm.entity.MenuPermissionEntity;
import com.yq.bdm.service.MenuPermissionService;



@Service("menuPermissionService")
public class MenuPermissionServiceImpl implements MenuPermissionService {
	@Autowired
	private MenuPermissionDao menuPermissionDao;
	
	@Override
	public MenuPermissionEntity queryObject(Long id){
		return menuPermissionDao.queryObject(id);
	}
	
	@Override
	public List<MenuPermissionEntity> queryList(Map<String, Object> map){
		return menuPermissionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return menuPermissionDao.queryTotal(map);
	}
	
	@Override
	public void save(MenuPermissionEntity menuPermission){
		menuPermissionDao.save(menuPermission);
	}
	
	@Override
	public void update(MenuPermissionEntity menuPermission){
		menuPermissionDao.update(menuPermission);
	}
	
	@Override
	public void delete(Long id){
		menuPermissionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		menuPermissionDao.deleteBatch(ids);
	}
	
	@Override
	public MenuPermissionEntity queryObjectByPermissionId(Long permissionId){
		return menuPermissionDao.queryObjectByPermissionId(permissionId);
	}
	
	@Override
	public void deleteByPermissionId(Long permissionId){
		menuPermissionDao.deleteByPermissionId(permissionId);
	}
	
	@Override
	public void deleteBatchByPermissionId(Long[] permissionIds){
		menuPermissionDao.deleteBatchByPermissionId(permissionIds);
	}
}
